package com.sanjiahantang.youjiarole.config;

import com.sanjiahantang.youjiarole.module.common.beans.CartGoodsBean;
import com.sanjiahantang.youjiarole.module.common.beans.ConditionBean;
import com.sanjiahantang.youjiarole.module.common.beans.PersonBean;
import com.sanjiahantang.youjiarole.module.common.beans.UserOBean;
import com.sanjiahantang.youjiarole.module.common.views.impl.MainActivity;
import com.sanjiahantang.youjiarole.module.me.scheme.beans.MeCaseOBean;
import com.sanjiahantang.youjiarole.module.money.beans.BankCardBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by sks on 2015/9/17.
 */
public class ConfigValue {
    // 请求服务器 成功code
    public static final String Success_Code = "1";
    // 请求服务器失败code
    public static final String Error_Code = "0";

    /**
     * 商品详情页修改购物车数量发送广播
     */
    public static final String ACTION_ALTER_CARTGOODS_NUMS = MainActivity.class.getName().toString();


    /**
     * 本地请求接口地址  PC 118.31.74.29  192.168.1.150
     */
    public static final String APP_IP = "http://www.ytianhe.com/shopapi/index.php/";


//    public static final String IMG_IP = "http://192.168.1.165:33300/";


    public static final String API_URL = "http://118.31.74.29:8000";
    public static final String IMG_IP = "http://118.31.74.29:33300/upload/";//app中图片获取的地址，和得到的数据拼接使用
    public static final String SHARE_IP = "http://118.31.74.29:8080/";//微信分享公共的链接地址
//    public static final String API_URL = "http://192.168.1.172:8000";
//    public static final String IMG_IP = "http://192.168.1.249:35000/upload/";//app中图片获取的地址，和得到的数据拼接使用
//    public static final String SHARE_IP = "http://192.168.1.172:8080/";//微信分享公共的链接地址

    //首页html5的地址
    public static final String MAIN_URL = "http://www.ytianhe.com/shopapi/index.php/Goods_index/index";


    //腾讯appid
    public static final String QQAPP_ID = "1104912240";
    //腾讯appkey
    public static final String QQAPP_KEY = "dWfNU8NjY99GJ2y9";
    //微信appid
    public static final String WXAPP_ID = "wx55f4b6689553fb39";
    //微信appsecret
    public static final String WXAPP_SECRET = "8ad55a4dc110aa87bfbf8d339ce91e6f";
    //用户个人资料
//    public static UserInfor uInfor = null;
    //请求数据用到的key
    public static String DATA_KEY = "1";


    public static int iconFlag = 0;//用来改变购物车图片的标识，0：未选中，1：选中

    public static boolean isDebug = true;
    public static boolean hasRegisterReceiver = false;


    public static List<CartGoodsBean.Data> selectGoodsList = new ArrayList<>();
    //用户个人资料
    public static PersonBean.Data userInfo = null;
    public static String roleId = "";
    public static int[] roleIdList = null;
    public static String PHONE = "";
    public static double lat = 0;
    public static double lon = 0;
    public static String city = null;
    public static ArrayList<ConditionBean.SelectorData> dutylist = new ArrayList<>();
    public static ArrayList<ConditionBean.SelectorData> favoritelist = new ArrayList<>();
    public static List<BankCardBean.Item> banklist = new ArrayList<>();
    public static int TYPE_SELECT = 0;
    public static Object param = null;
    public static MeCaseOBean.PicList data;

    public static long nowTime = 0L;

    public static boolean isLogoutByOtherUser = false;//异地登录
    public static boolean isLogoutByTimeOut = false;//登录信息过期
}
